package com.mifengs.mall.ui.my;

import com.mifengs.commonbase.base.BasePresenter;
import com.mifengs.commonbase.base.BaseView;
import com.mifengs.mall.entity.RedPacket;

import java.util.List;

/**
 * Created by lihaoqi on 2018/1/26.
 */

public interface RedPacketContract {

    interface View extends BaseView {
        void setData(List<RedPacket> data,boolean isOverdue);
        void setRefreshState(boolean state);
        void setMoreData(List<RedPacket> dealDetails,boolean isLoadOver);
        void loadMoreFail();
        void loadMoreComplete();
        void loadMoreEnd();
        void refreshData();
        void goToLogin();
    }

    interface Presenter extends BasePresenter {
        void getRedPacketData(int page,int type);
        void revRedPacketData(RedPacket redPacket);
    }
}
